dnl $Id$

AC_PREREQ([2.61])

AC_INIT([wilt], [0.01])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([m4])

AM_INIT_AUTOMAKE([foreign])
AM_MAINTAINER_MODE

AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.17])
AC_SUBST([GETTEXT_DOMAIN], [wilt])

AC_PROG_CC
AC_PROG_LIBTOOL

PKG_PROG_PKG_CONFIG([0.22])

if test -z "$PKG_CONFIG"
then
  AC_MSG_ERROR([pkg-config is missing])
fi

PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.16.0], [],
                  [AC_MSG_ERROR([GLib is missing])])
PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.12.0], [],
                  [AC_MSG_ERROR([GTK+ is missing])])
PKG_CHECK_MODULES(LIBWNCK, [libwnck-1.0 >= 2.22.0], [],
                  [AC_MSG_ERROR([libwnck is missing])])

AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile po/Makefile.in])
AC_OUTPUT

